import request from "@/utils/request.js";
import qs from "qs";

const baseUrl = '/adam4/api/v1/stockTransactionDataAll';

/**
 * 根据code、开始日期和结束日期查询数据，并按照date升序排列
 * @param {*} params 
 * @returns 
 */
function _findByCodeBetweenDateOrderByDateAsc(params) {
  return new Promise((resolve, reject) => {
    request({
      url: baseUrl + "/findByCodeBetweenDateOrderByDateAsc",
      method: "POST",
      data: params
    }).then((res) => {
      resolve(res)
    }).catch((err) => {
      reject(err)
    })
  })
};
export async function findByCodeBetweenDateOrderByDateAsc(params) {
  let res = await _findByCodeBetweenDateOrderByDateAsc(params);
  return res;
};